<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/jquery-3.6.0.js"></script>
    <script>
      //1. 标准写法： jq 入口函数 页面加载完毕 = onload
      $(document).ready(function () {
        console.log('jq入口函数:' + $('#btn').html())
      })

      //2. 简化写法:
      $(function () {
        console.log('jq入口简写函数:' + $('#btn').html())
      })

      window.onload = function () {
        console.log('====js原生写法11111===========')
      }

      window.onload = function () {
        console.log('====js原生写法222===========')
      }
    </script>
  </head>
  <body>
    <button id="btn">按钮</button>
  </body>
</html>
